macos: fix weird menubar rendering.
authorZhi <yfwz100@yeah.net>
Sun, 30 May 2021 00:02:18 +0000 (08:02 +0800)
committerZhi <yfwz100@yeah.net>
Sun, 30 May 2021 13:59:57 +0000 (21:59 +0800)
commit75868dfee4fad6b03b9f4e16b956380525eaff2a
treef5f3791921e92dbe81e7c66080d3eacd2cf332b4
parent24f0ae1d3981f8d7b5ab6a3980f7999ef0600c65
macos: fix weird menubar rendering.

As app menu has been deprecated, the function of app menu should be
merged into the menubar, which behaves like the original API of NSApp.

This also brings back the default app menu, which looks like native
macOS apps.

For future refactoring, please note that the menubar must contain at
least one menu before being set to NSApp to avoid weird menubar
rendering.

Fixes #3967.
gtk/gtkapplication-quartz.c